package com.yfp.operation.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yfp.operation.domain.ActivitySignInsRules;
import com.yfp.operation.domain.dto.ActivitySignInsRulesCreateReqDTO;
import com.yfp.operation.domain.dto.ActivitySignInsSearchRewardReqDTO;

import java.util.List;

/**
 *
 * @description 针对表【activity_sign_ins_rules(打卡管理-打卡规则表)】的数据库操作Service
 * @createDate 2025-01-02 10:43:50
 */
public interface ActivitySignInsRulesService extends IService<ActivitySignInsRules> {

    /**
     * 查询打卡规则列表
     *
     * @param searchReqDTO
     * @return
     */
    List<ActivitySignInsRules> searchList(ActivitySignInsSearchRewardReqDTO searchReqDTO);

    /**
     * 根据活动id查询打卡规则列表
     *
     * @param id
     * @return
     */
    List<ActivitySignInsRules> listByActivitySignInsId(Long id);

    /**
     * 锁定库存
     *
     * @param activitySignInsRulesList
     */
    void lockInventory(List<ActivitySignInsRulesCreateReqDTO> activitySignInsRulesList);
}
